<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--原生-->
<div id="div1">
    <p>这是一个普通的段落</p>
    <p>删除下面的段落</p>
    <p id="delete">该段落应该被删除</p>
</div>

<script>
    var pare = document.getElementById("div1");
    var child = document.getElementById("delete");
    pare.removeChild(child);
</script>
<!--ｊＱｕｅｒｙ-->
<p title="选择你最喜欢的水果？">你最喜欢的水果是？</p>
<ul>
    <li title="苹果">苹果</li>
    <li title="橘子">橘子</li>
    <li title="菠萝">菠萝</li>
</ul>
<script src="./jquery-2.1.4.min.js"></script>
<script>
    $(document).ready(function () {
        $("ul li").click(function(){
            alert($(this).html());
        });
        $("ul li:eq(1)").remove();
//        $li.appendTo("ul");
    })

</script>
</body>
</html>